import re
# m=re.search(r"^[1-9](\d{4,10})$","77025077") #QQ
# m=re.search(r"^1[34578](\d{9})$","13793397571") #mobile
# m=re.search(r"^0[1-9](\d{1,2})-[1-9](\d{6,7})$","0571-1234431")#固定电话
# m=re.search(r"^[a-zA-Z][a-zA-Z0-9]{0,9}$","yasd") #user
# m=re.search(r"^.{6,16}$","yinchengasd") #password
# m=re.match(r"^((\d){1,3}.){3}((\d){1,3})$","125.255.255.3")  #简单ip
#m=re.match(r"^(\d|[1-9]\d|1(\d){2}|2[0-4]\d|25[0-5])$","125")
#m=re.match(r"^((\d|[1-9]\d|1(\d){2}|2[0-4]\d|25[0-5]).){3}(\d|[1-9]\d|1(\d){2}|2[0-4]\d|25[0-5])$","125.0.0.1")#复杂ip
# m=re.match(r"^((18\d{2})|(19\d{2})|(20[0-1]\d))-(1[0-2]|0[1-9])-([0][1-9]|[1-2][0-9]|3[0-1])$","1985-05-22")#出生日期
# m=re.match(r"^\w(.|_|\w)+@\w+(.\w+){1,3}$","yincheng@163.com")
# m=re.match(r"^\w(.|_|\w)+@\w+(.\w+){1,3}$","yincheng.com_china@mails.tsinghua.edu.cn")
if  m is not None:
    print(m.group())
else:
    print(None)




#QQ  77025077  ^[1-9](\d{4-10})$
#mobile   13812344321  ^1[34578](\d{9})$
#phone  0571-12345678  010-12344321  0531-1234567
#   ^0[1-9](\d{1,2})-[1-9](\d{6-7})$
#ip
#^(\d){1,3}.(\d){1,3}.(\d){1,3}.(\d){1,3}$
#255
#0-9 \d
#10-99  [1-9]\d
#100-199   1(\d){2}
#200-249
#250-255
#^\d|[1-9]\d |1(\d){2} |2[0-4]\d|25[0-5]$
#^((\d|[1-9]\d |1(\d){2} |2[0-4]\d|25[0-5]).){3}(\d|[1-9]\d |1(\d){2} |2[0-4]\d|25[0-5])$
#^(\d|[1-9]\d |1(\d){2} |2[0-4]\d|25[0-5]).(\d|[1-9]\d |1(\d){2} |2[0-4]\d|25[0-5]).(\d|[1-9]\d |1(\d){2} |2[0-4]\d|25[0-5]).(\d|[1-9]\d |1(\d){2} |2[0-4]\d|25[0-5])$

#1985-05-02   01 02  12   31
#18,19,20
#(18\d{2})|(19\d{2})|(20[0-1]\d)
#(1[0-2]|0[1-9])
#[0][1-9]|[1-2][0-9]|3[0-1]


#email  y@163.com  yincheng@sina.com.cn
#yincheng.com_china@mails.tsinghua.edu.cn

#\w+  yincheng
#\w(.|_|\w)+   yincheng.com_china
#\w(.|_|\w)+@   yincheng.com_china@
#\w(.|_|\w)+@ \w+.\w+
#\w(.|_|\w)+@ \w+.\w+  |\w+.\w+ .\w+ |\w+.\w+ .\w+.\w+
#\w(.|_|\w)+@ \w+.\w+ {1,3}




